﻿using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
using System.Collections.Generic;

namespace Web.System.Utils
{
    /// <summary>
    /// 接口文档Controller描述
    /// </summary>
    public class AuthApplyTagDescriptions : IDocumentFilter
    {
        /// <summary>
        /// 标签
        /// </summary>
        /// <param name="swaggerDoc"></param>
        /// <param name="context"></param>
        public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
        {
            swaggerDoc.Tags = new List<OpenApiTag>
            {
                new OpenApiTag{ Name="Account",Description="账户中心"},
                new OpenApiTag{ Name="User",Description="用户管理"},
                new OpenApiTag{ Name="Role",Description="角色管理"},
                new OpenApiTag{ Name="OrganizationUnit",Description="机构管理"},
                new OpenApiTag{ Name="Tenant",Description="租户管理"},


                new OpenApiTag{ Name="Operation",Description="运营平台"},
                new OpenApiTag{ Name="Project",Description="产品中心"},
                new OpenApiTag{ Name="Order",Description="订单管理"},

                new OpenApiTag{ Name="Tenant",Description="客户列表"},
            };
        }
    }
}
